package org.github.manx98.jlibhac.tools.fssystem.ncautils;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/3 19:36
 */
public enum NcaKeyType {
    AesXts0 ,
    AesXts1 ,
    AesCtr ,
    AesCtrEx ,
    AesCtrHw;
    public static NcaKeyType valueOf(byte value) {
        for (NcaKeyType type : NcaKeyType.values()){
            if(type.ordinal() == value){
                return type;
            }
        }
        throw new IllegalArgumentException("Invalid NcaKeyType value: " + value);
    }
}
